<%
//用户
var user = shiro.getUser();
var title  = '食药注销';
layout("/inc/layout.html",{
title:title,
keywords:title,
description:title,
style:'user.css'
}){
%>
   <section class="container">
       <div class="row mt15">
        <div class="panel panel-info">
			<div class="panel-heading text-left">
				<ul class="nav nav-tabs">
					<li ><a href="/fooddrugApply/base"><b>食品经营许可证办理</b></a>
					</li>
					<li><a href="/fooddrugChange/index" ><b>食品经营许可证变更</b></a>
					</li>
					<li class="active"><a href="/fooddrugCancel/base"><b>食品经营许可证注销</b></a></li>
				</ul>
			</div>
			<div class="panel-body">
                <!--项目状态-->
  <legend><span class="text text-danger" id="messageCode">注销申请</span></legend>
                <form class="form-horizontal col-sm-offset-1 col-sm-9" id="saveCancelForm"  >
                    <div class="form-group">
                        <label class="col-sm-2 control-label">食品经营许可证：</label>
                        <div class="col-sm-10" id="distpicker">
                            <select class="form-control" name="companyName" id="companyName">
                             <%for(apply in list){%>
                             <option value="${apply.id}&&${apply.companyName}">${apply.companyName}</option>
                            <%}%>
                            </select>
                             <b class="text text-danger" id="cardType-error"></b>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="name" class="col-sm-2 control-label">注销原因：</label>
                        <div class="col-sm-10">               
                              <textarea class="form-control" rows="10"  id="cancelReason" name="cancelReason"  placeholder="注销原因"
                                   required="required">${cancelReason!}</textarea>
                                    <b class="text text-danger" id="name-error"></b>
                        </div>
                    </div>
                    

                </form>
               </div>
              <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class="mt5 mb5 block col-sm-3">
                        <a href="/user/transact" class="btn btn-warning btn-lg btn-outline btn-block">我的办件</a>
                    </div>
                    <div class="mt5 mb5 block col-sm-3">
                        <button type="submit" id="submitApply" class="btn btn-danger btn-lg btn-outline btn-block">提交</button>
                    </div>
                </div>
            </div>
         </div>
        </div>
    </section>
<% } %>
<script>
    require(['modules/fooddrug_base'], function (fooddrugBase) {
    	fooddrugBase.save();
    });
</script>
</body>
</html>